projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
612221a
)
(cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid
author
Richard M. Stallman
<rms@gnu.org>
Wed, 4 Dec 2002 11:46:31 +0000
(11:46 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 4 Dec 2002 11:46:31 +0000
(11:46 +0000)
confused compiler warning.
lisp/progmodes/cc-bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-bytecomp.el
b/lisp/progmodes/cc-bytecomp.el
index b0e33a97491a1c5ace3f74db856d02d3b36c9fb9..39347415bd1d82d199e70ce0ab6245c1887e493c 100644
(file)
--- a/
lisp/progmodes/cc-bytecomp.el
+++ b/
lisp/progmodes/cc-bytecomp.el
@@
-266,7
+266,10
@@
the file. Don't use outside `eval-when-compile'."
Don't use within `eval-when-compile'."
`(eval-when-compile
(if (get ',symbol 'byte-obsolete-variable)
- (cc-bytecomp-put ',symbol 'byte-obsolete-variable nil))))
+ (cc-bytecomp-put ',symbol 'byte-obsolete-variable nil)
+ ;; This avoids a superfluous compiler warning
+ ;; about calling `get' for effect.
+ t)))
(defun cc-bytecomp-ignore-obsolete (form)
;; Wraps a call to `byte-compile-obsolete' that suppresses the warning.